#ifndef MMORDERSETTINGFORM_H
#define MMORDERSETTINGFORM_H

#include <QWidget>

namespace Ui {
class MMOrderSettingForm;
}

class MMOrderSettingForm : public QWidget
{
    Q_OBJECT

public:
    //available buttons
    enum ButtonId {
        to_left,
        to_right,
        to_upper,
        to_lower,
        to_top,
        to_bottom,

        reset,
        confirm,
        cancel
    };

    Q_ENUM(ButtonId)

    explicit MMOrderSettingForm(QWidget *parent = nullptr);
    ~MMOrderSettingForm();

    void setContentWidget(QWidget* left, QWidget* right);
    void setStatistic(const QString& txt);
signals:
    void buttonClicked(ButtonId button_id, bool checked);

public slots:
    void enableButton(const QString& name, bool enable);

private:
    Ui::MMOrderSettingForm *ui;
};

#endif // MMORDERSETTINGFORM_H
